.class Llt/noframe/gpsfarmguide/views/FragmentSettings$5$1;
.super Ljava/lang/Object;
.source "FragmentSettings.java"

# interfaces
.implements Llt/noframe/gpsfarmguide/dialogs/NumberChooserDialog$OnNumberSelectListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Llt/noframe/gpsfarmguide/views/FragmentSettings$5;->onPreferenceClick(Landroid/preference/Preference;)Z
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$1:Llt/noframe/gpsfarmguide/views/FragmentSettings$5;


# direct methods
.method constructor <init>(Llt/noframe/gpsfarmguide/views/FragmentSettings$5;)V
    .locals 0

    .line 259
    iput-object p1, p0, Llt/noframe/gpsfarmguide/views/FragmentSettings$5$1;->this$1:Llt/noframe/gpsfarmguide/views/FragmentSettings$5;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onNumberSelected(F)V
    .locals 4

    .line 262
    sget-object v0, Llt/noframe/gpsfarmguide/utils/Preferences;->GPS_REFRESH_RATE:Llt/minvib/magicpreferences/MagicFloatPreference;

    iget-object v1, p0, Llt/noframe/gpsfarmguide/views/FragmentSettings$5$1;->this$1:Llt/noframe/gpsfarmguide/views/FragmentSettings$5;

    iget-object v1, v1, Llt/noframe/gpsfarmguide/views/FragmentSettings$5;->this$0:Llt/noframe/gpsfarmguide/views/FragmentSettings;

    invoke-virtual {v1}, Landroidx/fragment/app/Fragment;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-static {p1}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Llt/minvib/magicpreferences/MagicFloatPreference;->set(Landroid/content/Context;Ljava/lang/Float;)V

    .line 263
    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentSettings$5$1;->this$1:Llt/noframe/gpsfarmguide/views/FragmentSettings$5;

    iget-object v0, v0, Llt/noframe/gpsfarmguide/views/FragmentSettings$5;->this$0:Llt/noframe/gpsfarmguide/views/FragmentSettings;

    iget-object v0, v0, Llt/noframe/gpsfarmguide/views/FragmentSettings;->gps_refresh_rate_btn:Landroid/preference/Preference;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(F)Ljava/lang/StringBuilder;

    const-string v2, " "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v2, p0, Llt/noframe/gpsfarmguide/views/FragmentSettings$5$1;->this$1:Llt/noframe/gpsfarmguide/views/FragmentSettings$5;

    iget-object v2, v2, Llt/noframe/gpsfarmguide/views/FragmentSettings$5;->this$0:Llt/noframe/gpsfarmguide/views/FragmentSettings;

    const v3, 0x7f1101e7

    invoke-virtual {v2, v3}, Landroidx/fragment/app/Fragment;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/preference/Preference;->setSummary(Ljava/lang/CharSequence;)V

    .line 264
    invoke-static {}, Llt/noframe/gpsfarmguide/App;->getLocationProvider()Llt/noframe/gpsfarmguide/gps/AppLocationProvider;

    move-result-object v0

    invoke-virtual {v0, p1}, Llt/noframe/gpsfarmguide/gps/AppLocationProvider;->setRefreshRate(F)V

    return-void
.end method
